package com.yunpuvip.sachet.biz.service;

import com.yunpuvip.sachet.biz.entity.Player;
import com.yunpuvip.sachet.biz.model.params.PlayerParam;
import com.yunpuvip.sachet.biz.model.result.PlayerResult;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yunpuvip.sachet.modular.page.LayuiPageInfo;
import org.aspectj.apache.bcel.util.Play;

import java.util.List;

/**
 * <p>
 * 会员用户 服务类
 * </p>
 *
 * @author wushaohong
 * @since 2019-08-10
 */
public interface PlayerService extends IService<Player> {

    /**
     * 新增
     *
     * @author wushaohong
     * @Date 2019-08-10
     */
    void add(PlayerParam param);

    /**
     * 删除
     *
     * @author wushaohong
     * @Date 2019-08-10
     */
    void delete(PlayerParam param);

    /**
     * 更新
     *
     * @author wushaohong
     * @Date 2019-08-10
     */
    void update(PlayerParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author wushaohong
     * @Date 2019-08-10
     */
    PlayerResult findBySpec(PlayerParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author wushaohong
     * @Date 2019-08-10
     */
    List<PlayerResult> findListBySpec(PlayerParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author wushaohong
     * @Date 2019-08-10
     */
     LayuiPageInfo findPageBySpec(PlayerParam param);

    /**
     * 个人你几点获取用户
     * @param id
     * @return
     */
     Player getPlayer(Integer id);


   Player playerWxLogin(String token,Integer id);

}
